import common from "@/validator/common";

const name = [
  common.getRequiredRule('楼栋名'),
  {
    type: 'string',
    min: 2,
    max: 30,
    message: '楼栋名需在2 - 30个字符之间'
  }
]

export default {
  insertRules: {
    name
  },
  updateRules: {
    name
  }
}
